package com.example.demo.model;

import lombok.Data;

import java.util.List;
@Data
public class PageResult<S> {
    private int status;
    private String errorMessage;

    private int total;//记录数据总条数
    private List<S> records;
    private  PageRequest pageRequest;

    public PageResult(int total, List<S> records, PageRequest pageRequest) {
        this.total = total;
        this.records = records;
        this.pageRequest = pageRequest;
    }
}
